import request from '@/utils/request';

/**
 * @author yykk
 * @date: 2022-04-18 01:07:23
 * @desc: 酒店分类模块业务
 * @version：1.0.0
 */
export default {

  // 1: 查询$搜索&分页酒店分类
  findHotelCategoryPage(hotelcategoryVo = {pageNo: 1, pageSize: 10}) {
    return request.post("hotelcategory/list", hotelcategoryVo);
  },

  // 2: 查询酒店分类列表
  findHotelCategoryList() {
    return request.get("hotelcategory/load");
  },

  // 3: 保存&修改酒店分类
  saveUpdateHotelCategory(hotelcategory = {}) {
    return request.post("hotelcategory/saveupdate", hotelcategory);
  },

  // 4: 根据id删除酒店分类
  delHotelCategory(id) {
    if (!id) {
      return;
    }
    return request.post("hotelcategory/delete/" + id);
  },

  // 5: 批量删除酒店分类
  delBatchHotelCategory(batchIds) {
    if (!batchIds) {
      return;
    }
    return request.post("hotelcategory/delBatch", {batchIds});
  },

  // 6: 根据id查询酒店分类明细
  getHotelCategory(id) {
    if (!id) {
      return;
    }
    return request.get("hotelcategory/get/" + id);
  },


}
